﻿<%@ Page Title="Select Date" Theme="POSSystem" Language="C#" MasterPageFile="~/EditPages/Popup.Master" AutoEventWireup="true" CodeBehind="SelectDate.aspx.cs" Inherits="WebUI.EditPages.SelectDate" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PopupHeadHolder" runat="server">
    <script type="text/javascript" >
        function onOK() {
            var txtDate = document.getElementById("<%= txtDate.ClientID %>");
            window.returnValue = txtDate.value;
            window.close(); 
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PopupToolbarHolder" runat="server">
    <table class="popuptoolbar" width="100%">
        <tr>
            <td style="vertical-align: middle; text-align: left">
                <asp:LinkButton class="tbbutton" ID="btnNew" runat="server" OnClientClick="return onOK()">
                    <img src="Images/icon-ok.gif" /><asp:Label ID="label2" runat="server" Text="Select"></asp:Label>
                </asp:LinkButton>
                <asp:LinkButton class="tbbutton" ID="btnShowOrderItem" runat="server" OnClientClick="window.close(); return false;">
                    <img src="Images/CloseButton.gif" /><asp:Label ID="label3" runat="server" Text="Close"></asp:Label>
                </asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PopupContentHolder" runat="server">
    <div style="text-align:center">
        <br />
        <asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
        <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate">
        </asp:CalendarExtender>
    </div>
</asp:Content>
